package drink10_3;

public enum DrinkType {
	COFFEE, BEER, MILK;
	
	public static Drink getDrink(DrinkType drinkType) {
		if(drinkType == COFFEE)
			return new Coffee();
		if(drinkType == BEER)
			return new Beer();
		if(drinkType == MILK)
			return new Milk();
		return null;
	}
}
